package com.zr.datamodel;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 配送范围表
 * @author lym
 *
 */
@Entity
@Table(name="ld_range")
public class RangeDM {

	//配送范围id
	private int id;	
	
	//配送范围名称
	private String name;
	
	//所属配送点
	private PointDM point;	
	
	//配送范围价格
	private PointPriceDM rangePrice;	
	
	//描述
	private String remark;
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@OneToOne
	public PointDM getPoint() {
		return point;
	}

	public void setPoint(PointDM point) {
		this.point = point;
	}
	@ManyToOne
	public PointPriceDM getRangePrice() {
		return rangePrice;
	}

	public void setRangePrice(PointPriceDM rangePrice) {
		this.rangePrice = rangePrice;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}	
	
}
